package com.youlai.boot.sportPlan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.common.model.WeekCalendarVO;
import com.youlai.boot.sportPlan.model.entity.SportPlan;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.sportPlan.model.query.SportPlanQuery;
import com.youlai.boot.sportPlan.model.vo.SportPlanVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户饮食计划Mapper接口
 *
 * @author cuisheng
 * @since 2025-03-31 13:11
 */
@Mapper
public interface SportPlanMapper extends BaseMapper<SportPlan> {

    /**
     * 获取用户饮食计划分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<SportPlanVO> getSportPlanPage(Page<SportPlanVO> page, SportPlanQuery queryParams);

    List<WeekCalendarVO> weekCalendar(@Param("userId") Long userId,@Param("dates") List<String> dates);
}
